package portal.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import javax.faces.context.FacesContext;

import oracle.adf.share.ADFContext;


public class AppLanguageService {

    private List<Locale> supportedLocales = new ArrayList<Locale>();
    
    public AppLanguageService() {   
        //FacesContext.getCurrentInstance().getViewRoot().setLocale(new Locale("vi","VN")); 
        supportedLocales.add(new Locale("vi"));
        supportedLocales.add(new Locale("en"));
    }

    public void setSupportedLocales(List<Locale> supportedLocales) {
        this.supportedLocales = supportedLocales;
    }

    public List<Locale> getSupportedLocales() {
        return supportedLocales;
    }
}